<?php
namespace Api;

class Log
{

    public static function fileLog($log, $fileName)
    {
        $fileName = FCPATH . '/log/' . $fileName . '.log';
        $filePath = dirname($fileName);
        if (! is_dir($filePath))
            mkdir($filePath, 0777, true);
        file_put_contents($fileName, $log."\r\n", FILE_APPEND);
    }
    

}